﻿namespace Games
{
    /// <summary>
    /// 玩家
    /// </summary>
    public class Player
    {
        public Player(string name, int index)
        {
            Name = name;
            Index = index;
            DeckOfCard = new DeckOfCard();
        }

        /// <summary>
        /// 玩家名称
        /// </summary>
        public string Name { get; }
        /// <summary>
        /// 发牌次序
        /// </summary>
        public int Index { get; }
        /// <summary>
        /// 玩家手上的一副牌
        /// </summary>
        public DeckOfCard DeckOfCard { get; set; }

        /// <summary>
        /// 显示玩家
        /// </summary>
        /// <returns></returns>
        public override string ToString() => $"{Index} 号玩家 {Name},";
    }
}
